<h2 style="margin: 10px;">{{id==null ? '添加':'修改'}}套题</h2>
<form nz-form [formGroup]="validateForm" (ngSubmit)="_submitForm()" style="margin-top: 10px;">
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
      <label for="name" nz-form-item-required>套题名称</label>
    </div>
    <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback [nzValidateStatus]="getFormControl('name')">
      <nz-input [nzSize]="'large'" formControlName="name" [nzId]="'name'"></nz-input>
      <div nz-form-explain *ngIf="getFormControl('name').dirty&&getFormControl('name').hasError('required')">套题名称不能空</div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
      <label for="count" nz-form-item-required>题目数量</label>
    </div>
    <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback [nzValidateStatus]="getFormControl('count')">
      <nz-input [nzSize]="'large'" formControlName="count" [nzId]="'count'"></nz-input>
      <div nz-form-explain *ngIf="getFormControl('count').dirty&&getFormControl('count').hasError('required')">套题数目不能空</div>
    </div>
  </div>
  <div nz-row style="margin-bottom: 24px;">
    <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
      <label for="difficulty">套题难度</label>
    </div>
    <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
      <nz-rate formControlName="difficulty" ></nz-rate>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
      <label for="minute" nz-form-item-required>套题时间</label>
    </div>
    <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback [nzValidateStatus]="getFormControl('minute')">
      <nz-input [nzSize]="'large'" formControlName="minute" [nzId]="'minute'"></nz-input>
      <div nz-form-explain *ngIf="getFormControl('minute').dirty&&getFormControl('minute').hasError('required')">套题时间不能空</div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
      <label for="score" nz-form-item-required>套题分数</label>
    </div>
    <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback [nzValidateStatus]="getFormControl('score')">
      <nz-input [nzSize]="'large'" formControlName="score" [nzId]="'email'"></nz-input>
      <div nz-form-explain *ngIf="getFormControl('score').dirty&&getFormControl('score').hasError('required')">套题分数不能空</div>
    </div>
  </div>
  <div nz-form-item nz-row style="margin-bottom:8px;">
    <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="6">
      <button nz-button [nzSize]="'large'" [nzType]="'primary'">保存</button>
    </div>
  </div>
</form>